/**
 * 没有数据时展示
 */
import React, { Component } from 'react';
import { Icon } from 'antd';
import PropTypes from 'prop-types';

class Nodata extends Component {
	render() {
		const { chart: { height } } = this.context.theme;
		return (
			<div style={{ fontSize: '50px', padding: '100px', textAlign: 'center', height }}>
				<Icon type="frown-o" /><h3 style={{ fontSize: '18px', lineHeight: 2 }}>暂无数据</h3>
			</div>
		);
	}
}

Nodata.contextTypes = {
	theme: PropTypes.object
};

export default Nodata;
